package com.orion.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Administrator
 * @date 2021/7/8
 */
@Controller
public class MyController {

    @GetMapping("/index")
    public String indexPage(){
        return "index";
    }

    @GetMapping("/unauth")
    public String unauthPage(){
        return "unauth";
    }

    @ResponseBody
    @GetMapping("/api")
    public String api(){
        return  "my api";
    }

    @ResponseBody
    @GetMapping("/apx")
    public String apx(){
        return  "my apx";
    }

    @GetMapping("/myLogin")
    public String myLoginPage(){
        return "customLogin";
    }

    @GetMapping("/myAjaxLogin")
    public String myAjaxLoginPage(){
        return "ajaxLogin";
    }
}
